import {defineStore} from 'pinia';

export const useViewRoutesStore = defineStore('viewRoutes', {
    state: () => {
        return {
            cacheRouteNames: [], // 要缓存的路由name
            isShowRouter: true,
        }
    },

    actions: {
        async setCacheRouteNames(data) {
            this.cacheRouteNames = data;
        },
        async setIsShowRouter(data) {
            this.isShowRouter = data;
        }
    }
})
